# coding: utf-8

import datetime


class code(object):
    # 日期
    curr_date = datetime.datetime.now()
    p1 = 11
    init_flag = False

    def __new__(cls, *args, **kwargs):
        if not cls.init_flag:
            cls._init_global()

    @classmethod
    def _init_global(cls):
        three_pm = datetime.datetime(cls.curr_date.year, cls.curr_date.month, cls.curr_date.day, 15)
        cls.curr_date = cls.curr_date if cls.curr_date > three_pm else cls.curr_date - datetime.timedelta(days=1)
        cls.init_flag = True

